<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 项目列表
 * @package  htdocs
 * @subpackage  quanliadmin
 * @create by allen.qiang
 */

class pa_projectList {

    public function execute() {
        global $G_PGLOB ;
        if (isset($_REQUEST['operFlg'])) {

            switch($_REQUEST['operFlg']) {

                case 1: //项目列表
                    $this->projectList();
                    break;

                case 2: //项目添加
                    $this->projectAdd();
                    break;

                default:
                    $G_PGLOB->smarty->assign('msg', '参数错误，请审核后再操作');
                    $G_PGLOB->smarty->display('comm/error.tpl');

            }
        }
    }

    /**
     * 创建项目
     */
    public function projectCreate(){
    	
//    	if ( ! isset($_REQUEST['proejctID']) ||  is_numeric($_REQUEST['proejctID'])){
//    		
//    		return array('code' => 400,'message' => '参数不存在');
//    	}
//    	
//    	$projectEntityObj=new entity('sys_project');
//    	$projectEntityObj->projectID = $_REQUEST['proejctID'];
//    	
//    	
//    	if (! $this->_shopHandler->DBCA->fetch($projectEntityObj)){
//    		
//    		return array('code' => 404,'message' => '项目不存在');
//    	}
//    	
//    	
//    	$projectEntityObj->projectAlias;
    	
    }
    
    /**
     * 创建项目测试环境
     */
    public function projectCreateTestEnv(){
    	
    	
    }
    /**
     * 项目列表
     *
     */
    private function projectList() {

        global $G_PGLOB;
		
        $G_PGLOB->smarty->display('project/projectList.tpl');

    }

    //项目添加
    private function projectAdd() {

        global $G_PGLOB;

        $G_PGLOB->smarty->display('project/projectAdd.tpl');

    }


}
?>